package com.coffee.ws;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 开启 websocket
 */
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
    @Bean
    public WebSocketEndpoint mochaWebSocketEndpoint() {
        return new WebSocketEndpoint();
    }

    @Bean
    public SpringBeanContext SpringBeanContext(){
        return new SpringBeanContext();
    }


}